# 获取当前脚本文件所在的目录
$scriptRoot = $PSScriptRoot

# 定义要执行的脚本文件相对路径
$scripts = @(
    "scripts\java.ps1",
    "scripts\python.ps1",
    "scripts\maven.ps1",
    "scripts\nodejs.ps1"

)

# 遍历脚本文件并执行
foreach ($script in $scripts) {
    $scriptPath = Join-Path -Path $scriptRoot -ChildPath $script
    if (Test-Path $scriptPath) {
        Write-Host "Executing $script..."
        . $scriptPath
    } else {
        Write-Host "$script not found!"
    }
}